Appearance-Compliant Menu Bar Draw State Constants
NEW WITH THE APPEARANCE MANAGER
You can pass one of the following constants in theinState
parameter ofDrawThemeMenuBarBackground
to specify whether Appearance-compliant menu bars are drawn as normal or selected.
enum{ kThemeMenuBarNormal = 0, kThemeMenuBarSelected = 1 }; typedef SInt16 ThemeMenuBarState;Constant descriptions
If you wish the menu bar to be drawn with square upper corners (as for a laptop system) instead of rounded ones (as for a desktop system), your application should set the bit for the attribute
kThemeMenuBarNormal
- Menu bar is drawn in its normal state.
kThemeMenuBarSelected
- Menu bar is drawn in its selected state.
kThemeMenuSquareMenuBar
.
enum { kThemeMenuSquareMenuBar= (1 << 0) };Constant descriptions
kThemeMenuSquareMenuBar
- Menu bar is drawn with square corners.
SPECIAL CONSIDERATIONS
Make sure Appearance Manager 1.0.1 is present before using theThemeMenuBarState
type or the Appearance-compliant menu bar draw state constants. See "Appearance Manager Gestalt Selector Constants" for details on how to determine if the Appearance Manager is present and what its version is, if so.